#define _CRT_SECURE_NO_WARNINGS 1
#include"heap.h"

void test()
{
	hp h;
	hpInit(&h);
	int a[] = { 70, 56, 30, 25, 15, 10, 1 };
	for (int i = 0; i < sizeof(a) / sizeof(a[0]); ++i)
	{
		hpPush(&h, a[i]);
	}
	hpPrint(&h);
	hpDestory(&h);
}
void test1()
{
	//TestTopk();
	int a[] = { 70, 56, 30, 25, 15, 10, 75, 33, 50, 69 };
	for (int i = 0; i < sizeof(a) / sizeof(a[0]); ++i)
	{
		printf("%d ", a[i]);
	}
	printf("\n");

	hpSort(a, sizeof(a) / sizeof(a[0]));

	for (int i = 0; i < sizeof(a) / sizeof(a[0]); ++i)
	{
		printf("%d ", a[i]);
	}
	printf("\n");

}
int main()
{
	test1();
	//testTopk();
	return;
}